package wangyiyunclass.io.demo8;

import java.io.Serializable;

/*
 * 商品实体
 */
public class Goods implements Serializable{

	private static final long serialVersionUID = -2442024880621232176L;
	private Integer id;
	private String name;
	private Double price;
	// transient 被他修饰的成员变量不参与序列化
	private transient Integer storage;

	public Goods(Integer id, String name, Double price, Integer storage) {
		super();
		this.id = id;
		this.name = name;
		this.price = price;
		this.storage = storage;
	}
	@Override
	public String toString() {
		return "Goods [id=" + id + ", name=" + name + ", price=" + price + ", storage=" + storage + "]";
	}
}
